package com.rub.prajna.av.domain

import javafx.application.Application
import javafx.fxml.FXMLLoader
import javafx.scene.Parent
import javafx.scene.Scene
import javafx.scene.image.Image
import javafx.stage.Stage

class MainTabApp : Application() {
    private val LOGO_PATH = "/images/rub.jpg"

    override fun start(primaryStage: Stage) {
        val load = FXMLLoader.load<Parent>(javaClass.classLoader.getResource("fxml/mainTab.fxml"))
        primaryStage.title = "蹭蹭"
        val scene = Scene(load, 1000.0, 600.0)
        primaryStage.scene = scene
        primaryStage.icons.add(Image(javaClass.getResourceAsStream(LOGO_PATH)))
        primaryStage.isMaximized = true
        primaryStage.show()
    }

    companion object {
        @JvmStatic
        private fun main(args: Array<String>) = launch(*args)
    }

}

/*
fun main() {
    Application.launch(MainTabApp::class.java)
}*/
